

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <meta name="referrer" content="no-referrer"/>
  <link rel="apple-touch-icon" sizes="76x76" href="/tiaotiaohan/img/fluid.png">
  <link rel="icon" href="/tiaotiaohan/img/fluid.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="老年闰土">
  <meta name="keywords" content="">
  
    <meta property="og:type" content="website">
<meta property="og:title" content="诗云">
<meta property="og:url" content="https://gitee.com/tiaotiaohan/index.html">
<meta property="og:site_name" content="诗云">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="老年闰土">
<meta name="twitter:card" content="summary_large_image">
  
  
  
  <title>诗云</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />





<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/tiaotiaohan/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/tiaotiaohan/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/tiaotiaohan/css/highlight-dark.css" />
  




  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"gitee.com","root":"/tiaotiaohan/","version":"1.9.4","typing":{"enable":true,"typeSpeed":40,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/tiaotiaohan/local-search.xml"};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/tiaotiaohan/js/utils.js" ></script>
  <script  src="/tiaotiaohan/js/color-schema.js" ></script>
  


  
<meta name="generator" content="Hexo 6.3.0"></head>


<body>
  

  <header>
    

<div class="header-inner" style="height: 100vh;">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/tiaotiaohan/">
      <strong>诗云</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tiaotiaohan/">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tiaotiaohan/archives/">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tiaotiaohan/categories/">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tiaotiaohan/tags/">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tiaotiaohan/about/">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tiaotiaohan/links/">
                <i class="iconfont icon-link-fill"></i>
                <span>友链</span>
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

  

<div id="banner" class="banner" parallax=true
     style="background: url('/tiaotiaohan/img/default.png') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          
            <span id="subtitle" data-typed-text="局是局的局，庄是庄的庄"></span>
          
        </div>

        
      </div>

      
        <div class="scroll-down-bar">
          <i class="iconfont icon-arrowdown"></i>
        </div>
      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      <div class="container nopadding-x-md">
        <div id="board"
          style="margin-top: 0">
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/05/09/KMP/" target="_self">
          KMP
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/05/09/KMP/" target="_self">
        <div>
          原文链接：AcWing 831. KMP字符串 —— 深入浅出 next 数组 - AcWing板子代码123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960#include &lt;iostream&gt;using namesp
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-05-09 20:33" pubdate>
              2023-05-09
            </time>
          </div>
        
        
          <div class="post-meta mr-3 d-flex align-items-center">
            <i class="iconfont icon-category"></i>
            

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/tiaotiaohan/categories/%E7%AE%97%E6%B3%95/" class="category-chain-item">算法</a>
  
  

      </span>
    
  
</span>

          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tiaotiaohan/tags/%E5%AD%97%E7%AC%A6%E4%B8%B2/">#字符串</a>
            
              <a href="/tiaotiaohan/tags/KMP/">#KMP</a>
            
              <a href="/tiaotiaohan/tags/%E6%A8%A1%E5%BC%8F%E5%8C%B9%E9%85%8D/">#模式匹配</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/05/07/%E5%8D%A1%E7%89%B9%E5%85%B0%E6%95%B0/" target="_self">
          卡特兰数
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/05/07/%E5%8D%A1%E7%89%B9%E5%85%B0%E6%95%B0/" target="_self">
        <div>
          序列​	1 1 2 5 14 42 132 …… 通项公式与递推公式应用1、n个元素按顺序入栈，求出栈顺序有多少种？ &gt; （1）可以分为以k为结尾出栈的出栈顺序，k取1~n然后所有情况相加。即上述的递归定义 &gt; &gt; （2）也可以先算出不合理的出栈序列，然后用所有情况减去不合理的出栈序列数目。即上述通项公式2  参考自：卡特兰数_百度百科 (baidu.com) 2、给定n个节点画
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-05-07 22:15" pubdate>
              2023-05-07
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tiaotiaohan/tags/%E7%AE%97%E6%B3%95/">#算法</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/04/29/%E6%97%A5%E8%AE%B0-20230429/" target="_self">
          日记-20230429
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/04/29/%E6%97%A5%E8%AE%B0-20230429/" target="_self">
        <div>
          午休俩小时多，其实在半小时的时候就已经“起床”了。奈何又在桌子上一趴、在椅子上一趟。好久没有睡的这么沉了。 这种程度的睡眠可以不受外界的影响、不论多大的噪音。。。。。。
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-04-29 16:55" pubdate>
              2023-04-29
            </time>
          </div>
        
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tiaotiaohan/tags/%E6%97%A5%E8%AE%B0/">#日记</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/04/28/STL/" target="_self">
          STL
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/04/28/STL/" target="_self">
        <div>
          C++ STL 总结 介绍常用STL知识，注重应用，强调用法。适当介绍原理。  string 本质是一个存储字符的顺序表,有自动扩容机制  初始化12string str1; //生成空字符串string str2(&quot;123&quot;); //生成&quot;123&quot;的复制品  基本函数123456789s.size()和s.length()//返回string对象的字符个数
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-04-28 11:21" pubdate>
              2023-04-28
            </time>
          </div>
        
        
          <div class="post-meta mr-3 d-flex align-items-center">
            <i class="iconfont icon-category"></i>
            

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/tiaotiaohan/categories/%E7%AE%97%E6%B3%95/" class="category-chain-item">算法</a>
  
  

      </span>
    
  
</span>

          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tiaotiaohan/tags/%E7%AE%97%E6%B3%95/">#算法</a>
            
              <a href="/tiaotiaohan/tags/C/">#C++</a>
            
              <a href="/tiaotiaohan/tags/STL/">#STL</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/04/25/%E6%B1%82%E5%AD%90%E9%9B%86/" target="_self">
          求子集
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/04/25/%E6%B1%82%E5%AD%90%E9%9B%86/" target="_self">
        <div>
          题目：给定一个数字n，求集合{1，2，…，n}的所有子集 可以推广至任意集合  思路一：依次枚举第i个数是否加入到集合中递归树：  代码： 123456789101112131415161718192021222324252627282930313233343536373839404142#include&lt;iostream&gt;#include&lt;list&gt;#include&
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-04-25 21:18" pubdate>
              2023-04-25
            </time>
          </div>
        
        
          <div class="post-meta mr-3 d-flex align-items-center">
            <i class="iconfont icon-category"></i>
            

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/tiaotiaohan/categories/%E7%AE%97%E6%B3%95/" class="category-chain-item">算法</a>
  
  
    <span>></span>
    
  <a href="/tiaotiaohan/categories/%E7%AE%97%E6%B3%95/%E5%9B%9E%E6%BA%AF/" class="category-chain-item">回溯</a>
  
  

  

      </span>
    
  
</span>

          </div>
        
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/04/19/C++%E5%86%99%E7%AE%97%E6%B3%95%E5%B8%B8%E7%94%A8%E5%87%BD%E6%95%B0/" target="_self">
          C++写算法常用函数
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/04/19/C++%E5%86%99%E7%AE%97%E6%B3%95%E5%B8%B8%E7%94%A8%E5%87%BD%E6%95%B0/" target="_self">
        <div>
          字符串转数字int num = stoi(s); 数字转字符串string s = to_string(num); 字符串末尾添加字符s.push_back(&#39;a&#39;);  字符串末尾添加字符串s.append(&quot;asd&quot;); 字符串读取1、用cin读取 12string s;cin &gt;&gt; s;  但是这种读法、遇到空格就会结束 2、getline()
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-04-19 14:20" pubdate>
              2023-04-19
            </time>
          </div>
        
        
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/04/17/%E6%A0%88%E7%9A%84%E5%BA%94%E7%94%A8/" target="_self">
          栈的应用
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/04/17/%E6%A0%88%E7%9A%84%E5%BA%94%E7%94%A8/" target="_self">
        <div>
          栈的应用一、括号匹配二、表达式求值1、中缀表达式即正常的表达式，需要使用括号标明计算顺序，可由树的中序遍历得到 例如： ((1+2/2)*3-4/(1+2-4)*2) 2、后缀表达式（逆波兰表达式）不需要括号，可由树的后序遍历得到 例如： 1 2 2 / + 3 * 4 1 2 + 4 - / 2 *- 3、前缀表达式（波兰表达式）不需要括号，可由树的前序遍历得到 例如： - * + 1 / 2
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-04-17 16:04" pubdate>
              2023-04-17
            </time>
          </div>
        
        
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
    <article class="col-12 col-md-12 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/tiaotiaohan/2023/04/17/%E9%98%9F%E5%88%97%E7%9A%84%E5%BA%94%E7%94%A8/" target="_self">
          队列的应用
        </a>
      </h1>

      
      <a class="index-excerpt index-excerpt__noimg" href="/tiaotiaohan/2023/04/17/%E9%98%9F%E5%88%97%E7%9A%84%E5%BA%94%E7%94%A8/" target="_self">
        <div>
          树的层次遍历一、树的层次遍历二、图的广度优先遍历三、在操作系统中的应用1、CPU资源的分配​	多个进程争抢资源时，FCFS（先来先服务）是一种比较简单的常见策略 2、数据缓冲区​	如打印店里多个用户使用1台打印机，可以使用缓冲区（用队列组织打印顺序）
        </div>
      </a>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2023-04-17 15:54" pubdate>
              2023-04-17
            </time>
          </div>
        
        
          <div class="post-meta mr-3 d-flex align-items-center">
            <i class="iconfont icon-category"></i>
            

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/tiaotiaohan/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" class="category-chain-item">数据结构</a>
  
  
    <span>></span>
    
  <a href="/tiaotiaohan/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E9%98%9F%E5%88%97/" class="category-chain-item">队列</a>
  
  

  

      </span>
    
  
</span>

          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tiaotiaohan/tags/%E9%98%9F%E5%88%97/">#队列</a>
            
              <a href="/tiaotiaohan/tags/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">#数据结构</a>
            
          </div>
        
      </div>
    </article>
  </div>





              </div>
            </div>
          </div>
        </div>
      </div>
    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
  </main>

  <footer>
    <div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
    </div>
  
  
  
  
</div>

  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/tiaotiaohan/js/events.js" ></script>
<script  src="/tiaotiaohan/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>




  
    <script  src="/tiaotiaohan/js/img-lazyload.js" ></script>
  




  <script  src="/tiaotiaohan/js/local-search.js" ></script>





<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/tiaotiaohan/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
